<?php
if($access_control != "39rjvhre93"){ header("location:../"); }
include_once "controle/cx_transacao.php";
?>
            <fieldset>
                    <legend>Nova Transacao</legend>
                    <form action="" method="post">
                        <br>
                        <div class="dv_lb"><label>De</label></div>
                        <div class="dv_cp">
                            <select name="carteira1">
                                <option value="0"> -- Selecione -- </option>
                                <?=lista_carteira($transacao->get_id_carteira1())?>
                            </select>
                        </div>
                        <div class="dv_lb"><label>Para</label></div>
                        <div class="dv_cp">
                            <select name="carteira2">
                                <option value="0"> -- Selecione -- </option>
                                <?=lista_carteira($transacao->get_id_carteira1())?>
                            </select>
                        </div>
                        <div class="dv_lb"><label>Valor</label></div>
                        <div class="dv_cp"><input type="text" name="valor" value="<?=$transacao->get_valor()?>"></div>
                        <div class="dv_lb"></div>
                        <div class="dv_cp"><input type="submit" name="btn_salvar" value="Salvar"></div>
                    </form>
            </fieldset>
            <br>
            <button onclick="javascript:history.go(-1)">Voltar</button>